package com.mtsmda.chapter6;

public class StringBufferEx {
	
	public static void main(String[] args) {
		
		StringBuffer buffer = new StringBuffer("Dima");
		System.out.println(buffer.append(true));
		System.out.println(buffer);
		System.out.println(buffer.delete(0, 0 + 4));
		System.out.println(buffer);
		System.out.println(buffer.insert(0, " Niva "));
		System.out.println(buffer);
		System.out.println(buffer.insert(buffer.length() - 5, " Gazeli "));
		System.out.println(buffer);
		System.out.println(buffer.reverse());
		System.out.println(buffer);
//		buffer.equals(obj);// not overridden
	}
	
}